import Vue from 'vue'
import Router from 'vue-router'
import Demo from './views/Demo.vue'
//swiper 使用
import HelloWorld from '../src/components/HelloWorld'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'demo',
      //测试 px--->转rem 的插件
      component: Demo
    },
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      //测试 px--->转rem 的插件
      component: HelloWorld
    },
  ]
})
